package com.biz.primus.ms.sms.service.model;

import java.util.Date;

/**
 *
 * @author yanweijin
 * @date 2017/5/30
 */
public class StatefulServiceProvider {

	//包装的provider
	private ServiceProvider provider;

	//连续错误次数
	private int consecutiveErrorCount;

	//最后调用成功时间
	private Date lastSendSuccessDate;

	//余额
	private long balance;

	public void setProvider(ServiceProvider provider) {
		this.provider = provider;
	}

	public void setConsecutiveErrorCount(int consecutiveErrorCount) {
		this.consecutiveErrorCount = consecutiveErrorCount;
	}

	public Date getLastSendSuccessDate() {
		return lastSendSuccessDate;
	}

	public void setLastSendSuccessDate(Date lastSendSuccessDate) {
		this.lastSendSuccessDate = lastSendSuccessDate;
	}

	public ServiceProvider getProvider() {
		return provider;
	}

	public int getConsecutiveErrorCount() {
		return consecutiveErrorCount;
	}
}
